import { BasicColumn, FormSchema } from '/@/components/Table';

export const usePostUpdateSchemaForm = (): FormSchema[] => {
  return [
    { field: 'postCode', label: '', component: 'Input' },
    { field: 'postName', label: '', component: 'Input' },
    { field: 'postSort', label: '', component: 'Input' },
    { field: 'remark', label: '', component: 'Input' },
    { field: 'status', label: '', component: 'Input' },
    { field: 'postId', label: '', component: 'Input' },
  ];
};

export const usePostAddSchemaForm = (): FormSchema[] => {
  return [
    { field: 'postCode', label: '', component: 'Input' },
    { field: 'postName', label: '', component: 'Input' },
    { field: 'postSort', label: '', component: 'Input' },
    { field: 'remark', label: '', component: 'Input' },
    { field: 'status', label: '', component: 'Input' },
  ];
};

export const usePostListColumns = (): BasicColumn[] => {
  return [
    { title: '', dataIndex: 'postId' },
    { title: '', dataIndex: 'postCode' },
    { title: '', dataIndex: 'postName' },
    { title: '', dataIndex: 'postSort' },
    { title: '', dataIndex: 'remark' },
    { title: '', dataIndex: 'status' },
    { title: '', dataIndex: 'statusStr' },
    { title: '', dataIndex: 'createTime' },
  ];
};

export const usePostListSearchForm = (): FormSchema[] => {
  return [{ field: 'query', label: '', component: 'Input' }];
};
